package org.jeecg.modules.chvegetable.entity;

import java.io.Serializable;
import java.util.Date;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.TableField;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.jeecg.common.aspect.annotation.Dict;
import org.springframework.format.annotation.DateTimeFormat;
import org.jeecgframework.poi.excel.annotation.Excel;

/**
 * @Description: 毛产品管理
 * @Author: jeecg-boot
 * @Date:   2022-12-06
 * @Version: V1.0
 */
@Data
@TableName("t_flower_harvest_info")
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@ApiModel(value="t_flower_harvest_info对象", description="毛产品管理")
public class FlowerHarvestInfo {
    
	/**id*/
	@TableId(type = IdType.ASSIGN_ID)
    @ApiModelProperty(value = "id")
	private java.lang.String id;
	/**主表id*/
	@Excel(name = "主表id", width = 15)
    @ApiModelProperty(value = "主表id")
	private java.lang.String mainid;
	/**来源基地*/
	@Excel(name = "基地", width = 15,dictTable = "t_flower_planting_base",dicText = "name",dicCode = "id")
	@ApiModelProperty(value = "基地")
	@Dict( dictTable = "t_flower_planting_base",dicText = "name",dicCode = "id")
	private String sourceBase;

	/**来源大棚*/
	@Excel(name = "地块", width = 15,dictTable = "t_flower_planting_greenhouse",dicText = "name",dicCode = "id")
	@ApiModelProperty(value = "地块")
	@Dict( dictTable = "t_flower_planting_greenhouse",dicText = "name",dicCode = "id")
	private String sourceGreenhouse;

	@Excel(name = "批次", width = 15,dictTable = "t_flower_production", dicCode = "code" ,needMerge = true)
	@ApiModelProperty(value = "批次")
	private String productionId;

	/**库房*/

	@Excel(name = "库房", width = 15,dictTable = "flower_storehouse",dicText = "name",dicCode = "code")
	@ApiModelProperty(value = "库房")
	@Dict( dictTable = "flower_storehouse",dicText = "name",dicCode = "code")
	private java.lang.String storehouse;


	/**品种id*/
	@Excel(name = "品种id", width = 15,dictTable = "t_flower_variety_zz",dicText = "name",dicCode = "id")
	@ApiModelProperty(value = "品种id")
	@Dict( dictTable = "t_flower_variety_zz",dicText = "name",dicCode = "id")
	private java.lang.String variety;

	/**采摘日期*/
	@Excel(name = "采摘日期", width = 20, format = "yyyy-MM-dd")
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd")
    @DateTimeFormat(pattern="yyyy-MM-dd")
    @ApiModelProperty(value = "采摘日期")
	private java.util.Date harvestTime;
	/**单位*/
	@Excel(name = "单位", width = 15)
    @ApiModelProperty(value = "单位")
	private java.lang.String flowerPoleLength;
	/**采收数量*/
	@Excel(name = "采收数量", width = 15)
    @ApiModelProperty(value = "采收数量")
	private java.math.BigDecimal harvestCount;

	/**创建人*/
	@Excel(name = "创建人", width = 15)
    @ApiModelProperty(value = "创建人")
	private java.lang.String createUser;
	/**创建日期*/
	@Excel(name = "创建日期", width = 20, format = "yyyy-MM-dd HH:mm:ss")
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "创建日期")
	private java.util.Date createTime;
	/**更新日期*/
	@Excel(name = "更新日期", width = 20, format = "yyyy-MM-dd HH:mm:ss")
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "更新日期")
	private java.util.Date updateTime;
	/**更新人*/
	@Excel(name = "更新人", width = 15)
    @ApiModelProperty(value = "更新人")
	private java.lang.String updateUser;

	@Excel(name = "-2删除 0 正常", width = 15)
	@ApiModelProperty(value = "-2删除 0 正常")
	private Integer state;
}
